package Adapter;

import java.util.ArrayList;
import java.util.List;

import DomainPackage.*;
import Sistem.Register;

public class KargoUcusAdapter {

	public static List<KargoUcus> getAllKargoUcus(){
        List<Object> objectList = Register.getAll(KargoUcus.class);
        //as all getAll functions, we have to cast to according class
        List<KargoUcus> kargoucusList = new ArrayList<KargoUcus>();
        for(Object temp:objectList){
                kargoucusList.add((KargoUcus)temp);
        }
        return kargoucusList;
	}
}
